package cn.kgc.springboot.mapper;
import cn.kgc.springboot.cache.RedisCache;
import cn.kgc.springboot.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Entity cn.kgc.springboot.entity.User
 */
@CacheNamespace(implementation = RedisCache.class)  //  开启UserMapper的二级缓存
public interface UserMapper extends BaseMapper<User> {

    List<User> selectAllBySex(@Param("sex") String sex);
}




